import { createRouter, createWebHashHistory } from 'vue-router'

  export const routes = [
    {
      path: '/',
      component: () => import('@/views/index.vue'),
      name: 'index',
    }
  ]
// })

const router = createRouter({
  history: createWebHashHistory(),
  routes
  // scrollBehavior(to, from, savedPosition) {
  //   if (savedPosition) {
  //     return savedPosition
  //   } else {
  //     return { top: 0 }
  //   }
  // },
});

export default router
